Handle Invalid URIs in LinksChecker

URI.parse will fall over if the provided URI is invalid. This adds error
handling to LinksChecker so badly formed URIs do not cause the checker
to fall over.
Merge pull request #1591 from alphagov/handle-bad-uris

Handle Invalid URIs in LinksChecker