Curing the infrared problem in nonrelativistic QED