[1.7.x] Fixed #22411: Throw a more helpful error if contenttypes doesn't exist.

Conflicts:
	django/contrib/contenttypes/models.py