Fixes #235
Merge pull request #239 from ovatsus/master

Fix handling of optional elements in XmlProvider when using multiple samples