Ticket 47846 - server crashes deleting a replication agreement
Bug Description: when an agreement is deleted the ruv in
the repl agreemnet object is cleaned.
But if the agrrement is disabled, the
object doesn't exist and attempt to access
it crashes
Fix Description: remove maxcsn only if protocol is started
https://fedorahosted.org/389/ticket/47846
Reviewed by: Rich, thanks