check_websites: handle undefined location headers