SERVER-15228 Make awaitReplication properly detect NotMaster conditions