Percolative reconciliation between resistive and magnetic measurements of the transition temperature in HTS thin films