agetty: check numspeed for 0

This avoids agetty setting baud rate to 0.
Also avoids division by zero.