Updated Challenge Response Service to handle null values