CBQE-0: Fix for changing src/destination master nodes

Change-Id: Iada1df5c62778fbb1b7321cbf387d723dad6379f
Reviewed-on: http://review.couchbase.org/30339
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Reviewed-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>
Tested-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>