Bad variable assignment with new template (`>=4.2.0`)

SONAR_PROJECT_KEY and SONAR_PROJECT_NAME are now set to a default value (which is "") since move to component based template (4.2.0).

their check in the bash code must then be changed accordingly to that (and not check only that they're not set)