Fixed issue #7866: The statistics page crashes when you click the "Clear" button