[MATLAB] fixed error when finding the serial port
-fixed a crash of the hri_gui script, when one of the available serial port cannot be opened.