fix incorrect equality comparison
refs #637
merge 6f2a5cb1fa3700965e8ca460ced784ccc55086e7