Thermodynamics of charged three-dimensional scalar-tensor black holes: the problem of mathematical inconsistency and its solution | Synapse