sub_filter: use grn_expr_get_var() intead of grn->impl->curr_expr

There are no tests for this case because this case isn't used with the
current query executor. We should add a test for this case after we
get a better query executor.