Uncaught TypeError with Trac 1.0.1

In Trac 1.0.1, when visiting a ticket page, I ran into this error in browser console:
> ticketlog.js line 3:
```
Uncaught TypeError: Cannot call method 'replace' of undefined
```

With the change in this pull request, Changelogs appears and looks good.