Making sure line error background color always overrides other background colors.

This is a fix for #6702.