Fix deprecated API usage in HockeySDK >= 2.5.0.