I tested recently. What you and dvr said is correct. If both play with illegal formations, the engine treats as non-illegal formations.
True.
But as KoH realised, an abandoned team with not enough players will (or could) be given players in positions to make a legal formation. So always beware of playing abandoned teams.