Not all code paths returned a value, so we can use a safe default (8-bit RGBA) when the input is bogus.