FilteringXMLStreamWriter: Fix missing XML namespace bindings in output

In some cases, this bug caused missing XML namespace bindings in CSW-GetRecords responses.

3.4 version: #315.