Don't call getAttribute until we know the element exists
Merge pull request #13 from guardian/dr-filterjs-error

Fix sentry error in filter.js