Prevent division by zero in Signal2D.divide