[mbed] Small fixes of untested changes during recent refactoring