issue #19051: prevent crash