Fix in-ticket searches for comments and commits.
More ticket-item search fixes.