fs: fix segfault in Walker.next

`top` might point to invalid memory after a call to self.stack.append
which causes a segfault.

Prevent this by recomputing `top`.

Fixes #7560
9c53564af1Vincent Rischmann committed on 12/28/2020, 5:14:27 PMparent399c428
1 file changedLine totals unavailable