Protect range optimizer from not having a block

Fixes the LTA error vendethiel++ found: *.say for ^10