Fix exception during check raised by deleted file.