Fixed crash on deserialization of invalid javascript objects