MapNode: fix possible NULL pointer dereference. #297