The Index Theorem for Projective Families of Elliptic Operators