Improve error checking in labelsToString.
Avoid warning in parseConfigFile.
Avoid spurious error messages in httpClientDiscardHandler.