Fix for GitHub issue #232 Rest.li deployments failing due to unflushed stream