Ensure that functions that require the compositor can't be called if a session
has not been created yet.