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

This fixes crash on trying to use BOSHConnection on Android.