[PATCH v2 1/2] d3dx9_36: Handle NULL palette