Illegally traded endangered species that escape to form secondary populations offer opportunities for their long-term survival, a study suggests.