Check for references when removing a coverage on Imagemosaic (Related to GEOT-4640)