[DS-2005] Discovery hit highlighting issue with abstracts/fulltext

When the metadata contains the \r character and the metadata field set to hit highlighting uses the maxSize property the highlighting will not work.

The fix I created is the same as on line 613, this appears to have been forgotten when the maxSize attribute is used.