This is not the smoothest connection I've ever had.
Well at least you had the good fortune to find out your bags were not checked all the way through while you were at YUL. It would not have been much fun to show up in BKK and have no luggage. Judging from the time I am typing this out, you are already en route.
Hope it all works out!