Fix bug in twi_hw_master.c, found on devzone

See
https://devzone.nordicsemi.com/index.php/i-think-i-have-found-a-bug-in-twi_hw_master-for-nrf51822#reply-3904
for details.