Fix crashing on Geoscape with HQX scaling

(32-bit surfaces don't have a palette, so we should check for it from time to time)