Fixes a regression described here: https://gitlab.winehq.org/wine/wine/-/merge_requests/6401#note_82961 (where the theme has 8 bit paletted bitmap with default transparent colour which was displayed as pink instead of being transparent after the blamed commit).