Asymptotics for solutions of a defective renewal equation with applications