Whitelist/Blacklist Fix for renamed items

Only check on item type to avoid blocking renamed items.