mfreerdp: fix crash with <32bpp color depths