Improve find_item_usage to ignore items with invalid courseid