Bugfix #2440

Removed exception when calling cvDestroyAllWindows() without windows in QT (other frameworks exit quietly in such cases too).