Fix for crash when loading PNG in indexed mode

For example, some icons in SatCom