createContext now works when 'platform' is not given
createContext now works if properties, devices, or platform is null
Firefox-JS: Fix context leak in createContext.