warn when flushing an empty record batch