ni_nitdoc: Get last element in Set

Signed-off-by: Stefan Lage <lagestfan@gmail.com>