Fix exception if _sendData is called with data == nil
Merge pull request #55 from bastibense/master

Fix exception if _sendData is called with data == nil