Prevented duplicate combine arrays and prevented empty matches being created in elastic search filter.