Refs #9929 Fix unused variable warning.