refs #10208. Fix coverity warnings.