createContext now works if properties, devices, or platform is null