work around crash when dismissing a <select> popup on OSX. NCA-3296 QTBUG-29844