Bugfix in apply_markup_filter()

lxml fails if text is empty string when applying markup filter

It is necessary to this work for the API.