Refer to deferred.state instead of deprecated APIs

deferred.isResolved and .isRejected were deprecated then removed in favor of .state