fix for Bug #715687

Consider host_whitelist and whitelist_tags before deleting link element