Make clickLink(linkText) work for link text that isn't a syntactically valid CSS selector

If you call clickLink with a link text that isn't a syntactically valid CSS selector, querySelector throws an error and we never get around to checking for link texts. Catch the error and fall through to link text handling.