Added missing validation when changing an object's package