Fixed crash when there is no window class name