Fixed #23799 -- Made skipping optimizations during squashing actually work

Until now, the --no-optimize parameter to the squashmigrations
management command had no effect.

Thanks to @yamila-moreno for the idea of a skip message.