CXX-369 call ismaster when SSL is enabled

i think what I have now is a bit simpler and avoids a nested if.