Relativistic Hartree theory of finite nuclei: The role of the quantum vacuum