Handle correctly null associations

null belongs_to associations are now serialized as nil instead
of raise an error during serialization.
no, this doesn't throw an undefined error, instead serializer is nil in line 139