I know that most special abilities or effects linked to an attack whose damage is entirely negated don't trigger, but does the attack still count as a hit in the first place with regard to abilities such as the combat feat Hammer the Gap?