Allow null in createContext()