Fix NotRegistered error when `AUTH_USER_MODEL` is defined.