Allow 'x within y' selector to also work with blank nodes returned by resources