Thanks to Jan Moskyto Matejka for the fix.
\def\verb{\relax\def\sv@rb##1{\uccode`~=`##1%
\uppercase{\catcode`~13\global\let~\endgroup}}%
\def\verb{\relax\def\sv@rb##1{\uccode`~=`##1%
\uppercase{\catcode`~13\global\let~\endgroup}}%
-\begingroup\setverb@tim\sv@rb}
+\begingroup\setverb@tim\do\|\sv@rb}
% Typesetting of verbatim blocks:
% - the block is enclosed in balanced {}'s
% Typesetting of verbatim blocks:
% - the block is enclosed in balanced {}'s