Stability of thermocapillary flows in non-cylindrical liquid bridges