Fix ReferenceError for unknown types.
Merge pull request #175 from matthewwithanm/unknown-type-fix

Fix ReferenceError for Unknown Types