Refs #18740; fixed pyflakes warning