Check for corrupted error locations when showing a message.
Merge pull request #1 from TobiaszCudnik/master

Check for corrupted error locations when showing a message.