Fix PermissionUtil/npe (ensure a Permission instance is present).