Chance emergence of catalytic activity and promiscuity in a self-replicator