The suspicion is that the combination of the latest Java 7 patch doesn’t play along with the old gradle-cobertura plugin (it works fine with Java 6). Updating cobertura to a newer version fixes the build issues.
Making the code more resilient: if the configuration is messed up (empty string or spaces) or simply doesn’t exist, return the default value (and log the error)