Try to properly handle `get_node` failures. Fixes #386.