Dragging a column header in a wxHeaderCtrl and dropping it past the rightmost column resulted in a crash due to accessing a column with invalid index. Fix this and correctly move the column to the last position when this happens instead. This bug notably affected dragging columns in wxGrid. Closes https://github.com/wxWidgets/wxWidgets/pull/972