Handle correctly null associations

null belongs_to associations are now serialized as nil instead
of raise an error during serialization.
Just a sanity check: if `serializer` is not defined, line 139 will throw undefined error, no? Shouldn't we raise here instead if `serializer_class` is nil?