[fix][mbed] Add missing return on success