Fix length of error marker for missing src file

The length was not calculated properly. Length of attr.getValue() was
taken while it should be the length of attr.getValueRegionText(). The
difference comes when the attribute value is wrapped in quotes.