Fix crash if mobj is NULL

Encountered a crash in MAP01 of DARKEN.WAD where 2 or 3 corpses were
under a closing door. Can't replicate the crash, but mobj was NULL.