fix customfieldvalue can be a string not an array.

"-1".indexOf("-1") is true which leads to value.push failing.
value can be a string e.g. for filters for boolean.