Safer config parsing in getCooldownFromConfig()