Fix pr19841.cpp on release mode