Add protection against missing BUILD_URL environment variable
When Jenkins gets upgraded the configured server URL is not correctly taken into account until the configuration is saved again by hand.
Unfortunately this results in the environment variable BUILD_URL
not being set and we are implicitly relaying on its presence with the net result that the test results are not correctly reported and unusable.