Fixed a crash in mandate redistribution

* Stopped the application from crashing with an inappropriate exception
when a special case occurs during mandate redistribution.