Fix crash on null eof string.