XMLReader: Prevent streams from being closed when they don't exist.

Change-Id: If841a1ad30528499f592e7e6bfc09d146835ab51
Merge topic 'fix-xml-crash-on-close' into master

03f893bf XMLReader: Prevent streams from being closed when they don't exist.