SERVER 10950 Fixed C++11 build failure

Replaced implicit boolean conversion with call to ios.good()