add defData again for valid state check
I think this is not really correct, either
if the definition got deleted, this might point to a new one that
doesn't match, too.
perhaps a DefinitionRef is needed here
Differential Revision: https://phabricator.kde.org/D15134