IE8 empties the splice return value when passing it to the iterator