Fix build without KDocTools
Reviewers: Frameworks
Tags: Frameworks
Maniphest Tasks: T6711
Differential Revision: https://phabricator.kde.org/D7680