Fix for IE10 precompile issue

Added extra error handling to fix issue when checking for `v` namespace, this was causing an exception in IE10.  Added additional error handling to fix this issue.