add a undefined check for coverage data in response