Prevent crash when no serial port present

This patch allows the user to launch the app, event if no serial port has been detected.