Set end tsr on wrapper tokens

"<gallery></gallery>" gets wrapped in a DOMFragment. This fix ensures
that DSR is accurately computed for it when there is more than 1 wrapper
token.

Change-Id: Ie59050872bdb1259822238c7e432aa975a60371b
Merge "Set end tsr on wrapper tokens"