Fixed #23410 -- Avoid unnecessary rollbacks in related apps when migrating backwards.

This isn't really a state you can end up with, because you have two leaf nodes in one app. `manage.py migrate` will not work: https://github.com/django/django/blob/master/django/core/management/commands/migrate.py#L78