Fixed bug causing crash when loading a nonant with plants.

fixes #2773