ui.c: Fix infinite file list download loop with small uid value
ui.c: Fix infinite file list download loop with small uid value

And fixed the warn-assertion again.

Tilka/ncdc,srijan/ncdc,srijan/ncdc,srijan/ncdc,Tilka/ncdc