Fixing panel bug when no context object exists in the scene