Remove warning and return the correct type on failure.
Remove warning and return the correct type on failure.

wonderpush/wonderpush-ios-sdk,wonderpush/wonderpush-ios-sdk,wonderpush/wonderpush-ios-sdk,wonderpush/wonderpush-ios-sdk,wonderpush/wonderpush-ios-sdk