set cwd to an empty string if locatoin.href is unusual #1225

#1225