When there's only 1 TNT item in a dispenser inventory it is not removed and no TNT is spawned.
When there's a stack of TNT with 1 item only and other stacks of TNT in a dispenser inventory TNT will be spawned but no TNT will be consumed where the 1 TNT stack will be transferred to another TNT stack.