hwc2: Fix color mode setting

If the mode is not first searched for, the mode entry is
incorrectly created in the map in HandleColorModeTransform.
Check if the mode exists before trying to apply it.

CRs-Fixed: 2046706
Change-Id: I6a1d4ea3588bcd0b470492cb5de0bfcc24c2772a
1 file changed