[1.7.x] Fixed #23341 -- Added migration name to nonexistent migration error in makemigrations.

Backport of abd640fbdf from master