Prevent ugly error on missing type
Merge pull request #145 from ianmacl/errorOnTypeMissing

Prevent ugly error on missing type