Wrap type checking in a try catch.
Merge pull request #274 from mulesoft/firefox-completion

Wrap type checking in a try catch