Quantum Effects on the Deflection of Light and the Gauss-Bonnet Theorem