Upgrade modified sets even if they have no corresponding term

I still am not clear how this state occurred in our data (before I upgraded, I went back to a backup to confirm that), but this is one way to fix it.

Fixes #14.