Fix NullPointerException during 'sy restore' if file history is invalid.