Hmm....not really, he must know he survived the events and is looking for his future self......the laugh is he has found 2 of himself. He doesn't know what he looks like, and having traced himself wants to know which one is the Doctor, again they both are.
And I am still trying to work out how matt gets out of the timestream, the only thing I can come up with is a vortex manipulator, Strax, Vastra, Jenny are still standing in the tomb tardis.
The next thing ev1 will say is, why doesn't John recognise Matt, well because when Matt enters the timestream and meets John the events we are about to see have already happened for John but not Matt, and when they happen to John, Matt already knows, if he remembers.
My brain (such as it is) just melted........