Fixed #22073 - Ensure CreateTable operation handles backwards migration correctly when M2M fields are present

Ticket info: https://code.djangoproject.com/ticket/22073