Needed when some of the context querying functions can be called before an instance has been created.