The (optional) third argument of get_value
is the default value. "If default is not specified or set to null, an error is also raised." (Source) A warning would be more appropriate here in my opinion, but as of now you'll need to do something like this:
const DEFAULT = -1
if config.get_value("Settings", "Sound", DEFAULT) != DEFAULT:
singletons.sound = config.get_value("Settings", "Sound")