Fixed bug where do-until loop's statements weren't added to the AST

Another tiny bugfix, discovered while implementing do-until support.