correct the behavior when either fulfilledHandler nor rejectedHandler is a function