make sure loops doesn't break when last token is nullish. useful for empty programs and when trying to manipulate end of AST.