Quantum vacuum energy and the masslessness of the photon