sr: Handle back in update_directory

This prevents a segfault when swiping back while browsing files.

Change-Id: I82fef192e2b17d3c84ad10821e925d8b12dcc28e