Cherry-picked from 46c472b: Fixed issue in PlatformWindows. When making the new context current, condition order caused a crash if __hrc was null.