Fix 500s listing permissions for nonexistent users or vhosts.
Merge bug26438
stable to default