Ensure replication is properly stopped if there are no changes to push. See issues 64 and 45.