Refer to deferred.state instead of removed APIs

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