Fixes skip_failures

The check also needed to compare the current selector iterator to the
end of the selectors iterable.  The missing check was causing some
warnings in valgrind about conditional jumps on uninitialized values.