Check ID of uid rather than iid in getRecItemsTopN

pio_iid is not available in in the getRecItemsTopN function.