fix the build with -no-qml-debug

The "cleanup" variable doesn't exist in this case.

Change-Id: Ia7ed654d5c9ae57bc3f7cff39acbd72214ff4188
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>