Fix for the infinite loop in RemoveWhere...

The culprit was the check for the items didn't allow to skip empty
slots.

This is a great improvement, but it still has problems. More control is
needed:
- Still more than expected objects
- Still (sometimes) running out of memory