[1.5.x] Fixed #19628 - Noted that app for custom user model must be in INSTALLED_APPS

Thanks dpravdin and Jordan Messina.

Backport of 0375244eae from master