Resolves any possible dangling pointers if application style is changed after toggling the selection mode BUG:477288