It is canon but there is nothing wrong in ignoring the last episode, considering Terra Prime the series finale and telling stories in 2155 or 2156 in which Trip is well and alive. If you want an in-universe explanation, Riker accessed a not-so-accurate historical archive
