Check object exists before matching it
Merge pull request #3348 from guardian/onward-hotfix

Onward JS bug