Avoid error message when deleting sites.

#6130