gcoder: Prevent ZeroDivisionError in layer height

Head off a problem when a layer height estimate of zero is chosen.
This is a simple hack and something more elegant is probably desired
here.