Don't crash on new nodes (fixes #656)