When choosing the home wiki, if any accounts are in privileged groups, only the privileged accounts are considered for the home selection.
However, any blocked accounts are removed *after* this check. If all the privileged accounts are blocked at the moment (for instance, a sysop account who has blocked himself temporarily), the working set ends up being empty, no home wiki is chosen, and an exception is thrown.
The simplest solution is probably to strike out the blocked accounts before the privileged check; that is, just ignore any blocked accounts. This would, however, potentially allow a non-priveleged account to take advantage of a temporary or accidental block of a sysop account to take over.
If it's desired to block that condition, then a more friendly error should be returned instead of the low-level exception.
Version: unspecified
Severity: enhancement