[osx] Fix file url not to be nil if file is deleted.