Remove an unnecessary null check in CodeWindow.cpp.

The validity of ToolBar is checked at the beginning of the function