[os_xml] fix possible array underflows: see coverity
Merge pull request #186 from cgzones/os_xml-fix

[os_xml] fix possible array underflows: see coverity