Fix for crash when connecting to V6 (Frodo) API (issue #9)

This resolves [issue #9](https://github.com/colszowka/xbmc-client/issues/9). I've tested this against XBMC v12. I haven't tested this against any older version of XBMC.