Make PermissionsEx#isDebug return something sensible even if permissionsManager is null
Make sure ErrorReport correctly urlencodes params of shortened url
Make command handler account for permissions manager being null
Make hasPermission return the appropriate default for op status

Fixes #1563