Static analysis warning fixes

Refs #10620