Adds iterator overrun check to _consume_empty