rib: check for negative maximum of nodes