Use a for loop while filtering instead of Ext.each

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>