Thats a breather. So must be a flap to open close it when needed.What a strange setup.
Should be connected id have though. Check round the boost pipe. Wont be far if its there.Fuel sender working or not.Sound like a wire broke making it short to ground
Might not be when you lift carpet. Could be the connection loose