Check for existence of config var before setting it
Check for existence of config var before setting it

This commit fixes #12828

BytemarkHosting/bytemark-client,BytemarkHosting/bytemark-client,BytemarkHosting/bytemark-client