Don't crash when generating corpses of certain monsters

Ugly things or other corpse-leaving monsters with species type that
has COLOUR_UNDEF would cause this. There's a hack in place to prevent
crashes with &oX in wizmode, which can be removed when the relevant
code is cleaned up.