Fixed TS_Query to strip non-existing tags