According to this article article, all hops along the route must have sufficient liquidity to process any payment they wish to service.
However, in LN, new commitments may not to be broadcast to the blockchain until one wants to close a payment channel. How does LN know that a node has sufficient liquidity when a node has paid out all its bitcoins but the transactions have not been broadcast yet?