[mbed] Fixes the mbed dev_get.

Will now correctly returns -1 if smews asks for data when none is available