[#9859] Fix a near infinite recursion loop on TV ouptut filtering i.e. speedup of output filtering

Make modOutputFilter->filter() convert $ouptut into a string
if there were any processing.

More background at http://tracker.modx.com/issues/9859