Added permissions check when attempting invoking setUseParentHandlers(boolean)