[1.5.x] Fixed #19776 -- Added missing import for backport

line was present on master from 1520748dac95a7f114e4bb2feeee04d46c720494