[fix] Ensure that the pathname of the request URL is not null
[fix] When logging errors, use the error as the first argument of the logger
Merge pull request #101 from lpinca/fix/error-logger

Use the error as the first argument of the logger
Merge pull request #100 from lpinca/fix/null-pathname

Ensure that the pathname is not null