null; also correct the corresponding conversion loop exit in mbsrtowcs(). From YAMAMOTO Takashi in PR lib/13016.