You have to have been able to take damage for TP to be gained (before calculating Phalanx).
Stoneskin prevents this (from Reive Unity for example).
Karah is correct.

Better description:
http://wiki.bluegartr.com/bg/Shield_Mastery