CRM-13802 - Search Builder js - fix variable type comparison