Fix for BLD-993

**Description**

In certain cases jQuery errors when it is passed an invalid selector. A fix for this is to silently catch these errors.

**Jira issue**

[BLD-993](https://edx-wiki.atlassian.net/browse/BLD-993)

**Reviewers**

@davestgermain - Please review, since you have last changed this file in the place where it fails.