Reducing the gravitational lensing scatter of type Ia supernovae without introducing any extra bias