fix bug in send_outbox.js, do not publish message until outbox is ready