Prevent context creation if view is nil