We should now say 'mistaken for.' But Swift uses exactly the same construction with the compound verb 'mistaken' as we should use with the simple verb 'taken.'