Properly find headers
Summary:
isValid will return true if there's no match, so we basically were
assuming everything was a moc include and always including at the top
Reviewers: KDevelop, kfunk
Reviewed By: KDevelop, kfunk
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D6230