Fixes #21114 -- Migrations must not have a dependency to themself.

See ticket https://code.djangoproject.com/ticket/21114