fix error when parsing invalid url
Merge pull request #1 from MaZderMind/redesign-fix-urlparsing

fix error when parsing invalid url