coverity: Check for return codes in a couple of rather insignificant spots