Related to task T65877, where bug report is defined.
Same change also fixes another problem: mesh with multires modifier is invisible during rendering while in sculpt mode. To reproduce:
Mesh won't be rendered.
Thanks!