2009 21v - Gravity 3 question

Today my kid accidentally hit the fill switch on a rear gravity 3 bag with the ignition off. I noticed that the bottom port on the bag and tube from the pump both fills and drains the bag.

2 questions:
1. What does the upper port on the bag and the upper tube from the pump do? Is it just a passive over flow conduit? If so, it doesn't work too well.
2. Why didn't my pump shut off like it's supposed to? It keep filling and filling to the point that water was seeping out throw the fittings. It would have run forever if I hadn't seen it and shut if manually.

thanks