MDL-62218 analytics: Add missing sample origin checking