Fixed bug 1534 - SIGSEGV in SDL_ConvertSurface() for certain formats in SDL2

Don't assume that 8 bit formats are indexed.
Thanks to Gabriel Jacobo for research and potential patches.