Don't process expired hazards

Fixes a segfault caused by expired hazards (aka hazards that have
traveled outside the map).