Fixed bug that crashes the editor when resizing a window after selecting its owned component.