Comet transport fix.

NPE were fixed for improve snippet rendering time.
Can you factor out that string to a val rather than it being repeated in 3 places? Thanks.