Fix #1567 - Show error when trying to divide by zero