fix for Bug #715687 (Consider host_whitelist and whitelist_tags before deleting element)
Merge pull request #115 from cko/Bug715687

fix for Bug #715687