It doesn't really matter if there's gas left in the hose. The only way for all gas to flow out of the hose is for the hose to collapse or air to enter it. It's metered at the pump side but it doesn't matter, because flow out of hose = flow into hose. Also remember that it's pressurized from the pump side (it's actually pressurized from a pump in the underground tank), it doesn't just get like, passively siphoned out of the tank in the ground and into your car.
Flow through the hose stops at the nozzle when you either let go of the handle or liquid covers its venturi inlet. There isn't (ideally) any air in the gas coming through the hose from the pump (actually I don't think there's even allowed to be air for it to pass weights & measures certification, but don't quote me on that: here's the measurement design system guide for the UK, at least which you are welcome to study).
This means that any gas that comes out the nozzle must create suction in the hose which pulls more gas into the hose and more through the meter (and probably won't pull any gas through at all if the dispenser's check / flow control valves are shut off), so the hose won't empty. Also, any gas that goes into the hose from the pump pushes gas out the end of the hose (should take about 2 ms for a pressure change at one end of an 8' hose to be reflected on the other, if you are curious).
So what comes out of the nozzle is precisely metered, and what's left in the hose comes out when the next person pumps gas, and is also metered. There is no reason at all to make sure the hose is empty.
Lifting up the hose when you're done doesn't really get much gas, and it only comes out of the nozzle not the hose. With the handle off (nozzle closed) the only extra gas you're getting out of it is those last few drops left in the end of the nozzle downstream of the nozzle's venturi gate (which is near the handle), because the nozzle is sealed off from the hose at this point. The 0.1L figure in the other answer seems reasonable if you picture the volume of the nozzle. That's about 0.026 gal = about 7.2 cents worth of gas (according to current average gas price in Hawaii, US's most expensive gas state). For a 12 gal fill-up you save about %0.22 of your money, but a penny saved is a penny earned, I guess. And any added value of lifting up the hose this way assumes that the gas left in the downward pointing nozzle didn't already drip out into your tank anyways.