MOBSDK-764, MOBSDK-765 & MOBSDK-687: Fixed crashes coming from the SDK