Do not attempt to buffer when processing the last invocation (which has data set to NULL and len to 0).