Fixed crash in sampler on app resume

Fixes https://github.com/ConnectSDK/Connect-SDK-Android/issues/100