[1.7.x] Fixed #23041: Bad base dependencies for proxy models