Epidemics in networks with nodal self-infection and the epidemic threshold