Only flush to client if there is data.