Const correctness. Refs #8321.