prevent deletion of object container compatibility rules which are being used (#835)