between:support outside of key range

Returns empty record If between function specify outside of key range.

Returns correct record if cursor flag is changed to ``GRN_CURSOR_BY_KEY`` from ``GRN_CURSOR_BY_ID``.

Is this fix correct?