On the thermodynamic stability of the modified Chaplygin gas