[1.6.x] Fixed backport error in previous commit; refs #15961