fix(navigation): ignore unknown JS errors when looking for the URL

This should address #841

Ignoring the error and trying again has worked for all of my test cases,
and the error has never occurred more than once in a row.