When the the URL is invalid, we the error `Uncaught TypeError: Cannot read property 'indexOf' of null`. I'll add a fix for the issue.