Fix share dialog outside file app

@DeepDiver1975 @MTGap