Prevent -inf values when the closest mirror has a distance of 0