Check for self.typedAnswer only after it has been set.

It looks like 872cca14e947998461db96dc8deb0346805fa470 broke the whole type answer mechanism.
Afais `self.typedAnswer` is set in a roundabout way through the javascript `_getTypedText()` function, so you should check for it only after calling that.