prj-prev/next-file: return nil on end