Fix django.core.exceptions.AppRegistryNotReady in defaults.py

Fixes AppRegistryNotReady for Django 1.7