validate:launcher: Avoid using not yet set variables

And make the file pep8 compliant with latest pep8 checker.
3 jobs for launcher_fixes in 8 minutes and 54 seconds (queued for 15 minutes and 14 seconds)
Status Name Job ID Coverage
  Preparation
passed manifest #50249

00:00:37

 
  Build
passed build fedora x86_64 #50250

00:03:41

 
  Full Builds
passed build android arm64 api28 #50251

00:04:35