Fixed #23975 -- Sent pre_migrate signal if all apps have migrations.

https://code.djangoproject.com/ticket/23975