prevent redirect loop if someone has deleted the site closed files.