@Richard *********
For future reference, in the situation you describe they CANNOT force you to go back to Australia. It's legally a bit complicated, but in most cases it's the airline's responsibility to get you back to KL. Unless they legally deport you (which they did not as you were not in the country to begin with), Thai immigration has no right to determine where you go outside of Thailand.