refs #8752. Cpp check issue around if.