Hamburg gained a vital three points at home to high-flying Stuttgart thanks to Fábio Vieira's late strike.