Fix and testcase for XML pattern facet parsing problem