Fixed nextline issue 

When poem formerly advanced to nextline after the last line, saw "undefined"