add defData again for valid state check

Authored by cullmann on Aug 28 2018, 10:28 PM.

Description

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