Bug 49534: Call to a member function saveXML() on a non-object

Caused by code paths that don't call filterContent()

Change-Id: I7bc8b28f88756133052abae0b4f1c88ff5ff9317
Merge "Bug 49534: Call to a member function saveXML() on a non-object"