Catch ImproperlyConfigured exception in migration

In Django 1.6, without an overridden AUTH_USER_MODEL in settings.py, was
getting an ImproperlyConfigured exception from django.contrib.auth.