[1.7.x] Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.

Backport of a449e7feec from master