Fix test failures when glibc assertions are enabled.
Fix test failures when glibc assertions are enabled.

Fixes #1644.

libjxl/libjxl,libjxl/libjxl,libjxl/libjxl,libjxl/libjxl,libjxl/libjxl,libjxl/libjxl,libjxl/libjxl,libjxl/libjxl