Fix compiler warning. refs #6656.