Fixed on demand restricting for dangerous methods with whitelists

Fixes #1653
Merge branch 'master' of github.com:M66B/XPrivacy