gitlab-ci: fix testing whether a variable with a given name is set or not