Insert assert to catch xdcr bug

Change-Id: I411709086db5a31885c6c6787e1b20384c864232