Fixed SD2-1207 - Closing a file with the code completion window still open disposes the text editor before the completion window causing a null reference exception. The AbstractCodeCompletion window now checks that TextAreaControl's scroll bars are not null when it closes.