Fix of https://github.com/rtreffer/asmack/issues/7

This fixes crash on trying to use BOSHConnection on Android.

Solution is taken from upstream issue: https://kenai.com/jira/browse/JBOSH-24