Well, yes he was referring to a Person, but that's because the Holy Ghost ie the Comforter is the Third Person of the Godhead. Here's the relevant passages:
'And I will pray the Father, and he shall give you another Comforter, that he may abide with you for ever;
Even the Spirit of truth; whom the world cannot receive, because it seeth him not, neither knoweth him: but ye know him; for he dwelleth with you, and shall be in you.' St. John 14: 16-17
'But the Comforter, which is the Holy Ghost, whom the Father will send in my name, he shall teach you all things, and bring all things to your remembrance, whatsover I have said unto you.' St. John 14: 26.
'Nevertheless I tell you the truth; It is expedient for you that I go away: for if I go not away, the Comforter will not come unto you; but if I depart, I will send him unto you.
And when he is come, he will reprove the world of sin, and of righteousness, and of judgement:
Of sin, because they believe not on me; of righteousness, because I go to my Father, and ye see me no more;
Of judgment, because the prince of this world is judged.
I have yet many things to say unto you, but ye cannot bear them now.
Howbeit when he, the Spirit of truth is come, he will guide you into all truth: for he shall not speak of himself; but whatsoever he shall hear, that shall he speak: and he will shew you things to come.
He shall glorify me: for he shall receive of mine, and shall shew it unto you.
All things that the Father hath are mine: therefore said I, that he shall take of mine, and shall shew it unto you.' St. John 16: 7-15.