Add missing bounds check to $f_BufferEditor_print_region().