Throw a more descriptive error when url is undefined

Closes #80