Also change `Node::get_node_and_resource` to prevent it from printing an
error from `Node::get_node`, and just returns nullptr. This is what the
redundant check was trying to prevent.
Fixes#88428.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>