Steida/este — pull request #17 by hleumas (2013-02-09 20:22:18+00:00)
Title: Fix toJson method on null attributes

When the model has some attribute set to null, the exception was
raised "cannot access property toJson of null." This piece of code
fixes the issue.