Fix compiler warning. Refs #7636.