Looks like the not-this-window var was removed from the defun arg list. But it is still used in the last line of display-message-or-buffer function:
(t
;; Buffer
(goto-char (point-min))
(display-buffer (current-buffer)
not-this-window frame)))))))) ; <-------------------