Clarify variable names and conditionals in setProperty.

refs #2589