Fix exit crash in Active Server when passing arguments following standard Qt arguments


Break out of the loop freeing the arguments when encountering a nullptr
due to QGuiApplication shifting the array.

Fixes: QTBUG-139731
Pick-to: 6.10 6.8
Change-Id: I954c5ccde0ab70125a770569f3ed59f89845249f
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commit4704e20aaacb15d0b5bf373209a76acc0a182241
parentfc3223b8b986272dd27cf3d4f377af9f0308565c
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
committerFriedemann Kleint <Friedemann.Kleint@qt.io>
commit timeTue, 7 Oct 2025 09:02:19 +0200