Make templates more robust
avoid errors when some fields are not present
strip links from truncated content (to avoid truncating mid-link)
Fixes uq-eresearch/AustESE#193