In such a case I usually could persuade the supervisor etc that I will get the visa n country or whatever
But one time this didn’t work when I was flying to ID from BKK so I had to buy return ticket to Thailand. Glad you never had any issues but many people did 😀