Fix get_serializer_class for when self.object is None