Reinit state before upgrading projects.

This issue was reported by Jerrad Pierce.