Better error detection for callDeferred.