馃崚 don't stumble over nullptrs if outputs changed during saving
exec() opens a nested eventloop that does event processing and may end up processing output changes when e.g. a screen is getting unplugged. as part of this our m_configHandler may get reset to null, so make sure the pointers are still valid after exec
(cherry picked from commit 0bfa16bd)