Multidrug-resistant bacteria compensate for the epistasis between resistances