BUG: 420077 - hunk of original commit e8a1f8ecc seems was lost during a94be708e merge, so restoring it again - add missing check Original Differential Revision: https://phabricator.kde.org/D28889
e8a1f8ecc
a94be708e