Check if inferredType is `undefined` in deserialize.js:64

Error discovered in Firefox 30.0 on Ubuntu 14.04