patch as transmited by charles cook

Tested, it does fix the issue.

Step to reproduce:
- create a profile with country+state+email
- enable several countries
- create a petition with that profile
- change country, the states' list is now correctly updated