symbolizersToXML: Do not assume tagcontent has a value

Fixes #297

Includes testcase