remove bad assert

Example on how to trigger this:
-have a CMake project with unit tests
-make clean
-try to launch one test that has an executable cleaned by the previous step

(cherry picked from commit 4a4592f3)
1 job for 5.4 in 49 minutes and 38 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #22942
linux stable-kf5-qt5 qt5.12

00:49:38

47.0%