fix case when content type model_class is None