[fix] Ensure that the pathname of the request URL is not null
Merge pull request #100 from lpinca/fix/null-pathname

Ensure that the pathname is not null