Fix crash modbus_new_rtu when baud is 0
Unit test for baud rate check and error message
Move check of device earlier to avoid a free call