[Bug 16486] Apps not restoring correctly after minimizing twice