[1.7.x] Fixed #23674 -- Fixed a crash when a MultiValueField has invalid data.

Backport of 0dea81cd6d34b3e41cc4bbec99b5fdf06142b09e from master