STORM-297: avoid call IConneciton.send() when there is no message in the iterator.