fix (bug 31974)

fix
by
VG
(fixes bug 31974)

:

Fix exception executing xpath query in collections with
mixed (XML and binary) content.