Fix a crash closing Dunnart with one tab using Qt 5.1.