characteristics can produce undefined in mongo 2.4.  In that case we want to use null instead so that the string match function behaves appropriately