Fix exception on GitLab MRs
Created by: lguychard
Fixes an exception thrown on GitLab merge requests if they contained commented snippets in the MR discussion timeline (which is always present on merge requests, even on the "Changes" tab, where it is hidden).