Remove asserts in rs_buf.c, improve resume code.