MBS-6009: Update check_last_replication_date to work with latest MBS