Fix various segfaults caused by missing P_MobjWasRemoved checks
Found various places where the game could potentially segfault due to missing P_MobjWasRemoved
checks. Discovered using this script:
addHook("MobjLineCollide", function (mobj, line)
P_RemoveMobj(mobj)
end)