Fixed implementation of pojo registration.
Fixed implementation of pojo registration.

The sugar:
typeson.register({MyClass});

failed if parsing undefined or null since the tester did not check for that.

dfahlander/typeson,dfahlander/typeson,brettz9/typeson,brettz9/typeson