JRuby

Yielding no values to a block gives ArrayIndexOutOfBoundsException