[#84330270] Updated logic to return false for the select function parameters when finding malformed sharedItems.