Fix possible nil agent check names