This reverts commit 1dd102d741 as it introduced a crash in the same method when using generic wxDataViewCtrl implementation, e.g. under MSW, and is not necessary to avoid the crash with wxGTK3 any longer after the few previous commits.
1dd102d741