serial: 8250_mid: fix divide error bug if baud rate is 0