Bug 5790 - Prevent deletion of records with holds