Fix for saxon removing saxon:item-at functions in 9.4 and up.

An expression we have does not work anymore since Saxon 9.4 is used... This patch (including test) fixes that.