[BUG] Augmenting the array while iterating over it gets out of sync results

:koala: :bug: :+1: 

/cc @zendesk/quokka 

Search results and count would be out of sync due to splicing array inside an each call, I filter instead.

### References:
Ticket: 648601