Scripts/ZulAman: Fixed a crash caused by the grid.

Closes #8885.