Fixed termination on sending a zero-length sparse input
Fixed termination on sending a zero-length sparse input


Former-commit-id: 017def5ccf0892b144cbe0eb9372b1917996468d
clab/dynet,xunzhang/dynet,chunyang-wen/dynet,danielhers/dynet,danielhers/dynet,shuheik/dynet,shuheik/dynet,clab/dynet,danielhers/dynet,danielhers/dynet,clab/dynet,xunzhang/dynet,xunzhang/dynet,chunyang-wen/dynet,danielhers/dynet,chunyang-wen/dynet,shuheik/dynet,clab/cnn,shuheik/dynet,clab/dynet,clab/dynet,xunzhang/dynet,clab/dynet,clab/cnn,clab/dynet,shuheik/dynet,clab/cnn,danielhers/dynet,danielhers/dynet,chunyang-wen/dynet,shuheik/dynet,shuheik/dynet