Fix generator debug message when read past end of file requested