Fix possible crash with grass ABM.