[win32k] Handle invalid palette index by using the first palette entry