Raise meaningful exception if amendment doesn't have a selection.

Such broken data exists due to a previous bug. This makes it easier to
detect that.
Merge pull request #929 from nidico/feature-raise-broken-proposals

Raise meaningful exception if amendment doesn't have a selection.