Fixed return values and error handling in the TwoWire::endTransmission() API

Now follows Arduino implementation.
This else clause can be removed now.