Fix try to delete file while it does not exist anymore (see #2102 and #1713) in reference to this issue