Avoid empty strings in auto generated tok queries.