If all damage from a source is prevented (because of Pay No Heed, for example) or if a source would deal 0 damage, the effect of Pyromancer’s Gauntlet will not apply as that source is no longer dealing damage.