don't crash on PF_objerror

This resolves issue #23. Tested using impdm1.

I included JF's comment to make it clear that this is just lifted from
Fitzquake.