fix wrong error hanlding intoduced in 945aef

spotted by @benpicco in https://github.com/RIOT-OS/RIOT/commit/945aefad4fd707173be646d3c79a568381e85e0d#commitcomment-4430328