Fixes decoding for CMYK jpegs.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1072164