Avoid error message when deleting sites.
Merge pull request #6131 from openscholar/6130

Avoid error message when deleting sites.