The Spitzer Survey of Stellar Structure in Galaxies (S4G): Precise Stellar Mass Distributions from Automated Dust Correction at 3.6 μm