Fixed parsing of empty urls and hash tag urls