Lee Johnson credited his side's mentality as they rode their luck at times, only to find a late winner against Sheffield United.