Fix "Alpha on JPEG with no alpha" when decoding

Fix for revert: 63178bde3cbbd959f688074575b90a4475b42b0f