Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24