Changed flist_for_ndx() to optionally die with an error