Thanks for reporting the problem. I installed the attached patch into the emacs-26 branch; please give it a try.