On Harnack inequalities and singularities of admissible metrics in the Yamabe problem