BUG 414550: Fix an obviously wrong assert
Weirdly enough, this code has been here for 13 years, so I guess it never got executed...
(cherry picked from commit 71ca2f24e832e4be7453a5708b8b24da546496bc)