FilteringXMLStreamWriter: Fix missing XML namespace bindings in output

In some cases, this bug caused missing XML namespace bindings in CSW-GetRecords responses.