[FIX] avoid MO usage blockage if the linked BOM has been deleted

This PR fixes #3417 
When you try to delete a BOM, it warns you if the BOM is linked to a MO.