Fix file delete, if entity doesn't exist.