Fixed crash on trying to deserialize null objects