added try/catch to fix mono fail of IsValid
Merge pull request #973 from phillip-haydon/DynamicDictionary

added try/catch to fix mono fail of IsValid