[1.4.x] Fixed #21338 -- Allow to use the same class name for proxy models

Fixed #21338