SERVER 10950 Fixed C++11 build failure

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

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>