1012978: Preventing error when removing products and repos