Fixed warning for unused variable

Refs #8513