Fixes BZ 1098223 -- repo deletion does not work in some cases.
Merge pull request #522 from pulp/bmbouter-1098223

Fixes BZ 1098223 -- repo deletion does not work in some cases.