Fix a fatal error in TopicHistory page

The code assumed topic history are all PostRevision, this is
not true because it could be PostSummary as well

Change-Id: I55196562c95c59b2bac609ee1a7f6808fe25a11d