[DF-4904] Fix application restart after minimize