Fix the pending count when undefinedFailsBuild is set to true

When I want that my build fails when undefined or pending count is not 0, the undefined or pending count value is merged into the failed column. And then the report is not showing the correct information.