fixed some bugs in getting NodeList

copied check if we reached length of routes.length in the NO attributes
option
handled exception for /library/catalog: we call get data with r=2, but
size is 2, so it starts out of bounds, in which case get data is called
with r=1 so that it returns right away with entire catalog