Check for denied access in itemdef/nodedef/media fetch loop