Update basejs.php

only set uri_segment_x if isset $uri_segmentx