Fix that an error occurs when the clearance of site stats cache goes wrong. bugid:110786