The fix is simply to make a fresh cons instead of using a quoted literal (your backquote fix macroexpands to the same thing, but it's not sufficiently obvious enough for a human reader to realize that), this should be safe enough to put on the emacs-27 branch: