Fix a bug when creating crash report textual representation

It was working always before, but isn't actually correct.