Check activeModule before using it
activeModule can be a nullptr here, as this is outside/after the
if (activeModule).
This causes kontact to crash when opening its settings.
BUG: 417396
FIXED-IN: 5.68.0
Differential Revision: https://phabricator.kde.org/D27433