Added helper function for getting config values with error handling