Fixed doxygen and cppcheck errors. Refs #9378.