fixed a possible NullReferenceException when check there is any data to be sent during the socket is being closed
Merge branch 'master' of https://github.com/kerryjiang/SuperSocket