Fix replicated dialog profile management in distributed systems

- replication-receiving instances must not do any profile-related
  DB queries