Some improvements for preventing division by zero in elements-wise vector division.