fix incorrect equality comparison
refs #713
merge 7760c8cf5e581a7a45d10896eca4a07edca5a7c6