Another fix for bug #11004 (https://gna.org/bugs/?11004).
This actually isn't a new bug as suggested in the emails (see the bug report for links). It is the
same division by zero problem as was fixed in r5117 (1.3 line) and r5119 (1.2 line), just a few
lines down.