Fixed saving and restoring multiple files/tabs from localStorage