Refs #10096 Fix cppcheck warning