Handle CMake methods/functions without arguments gracefully
Summary:
Fixes crash from KDE bug #363707. For details see backtrace in
bug report.
BUG: 363707
Reviewers: apol, KDevelop
Reviewed By: apol, KDevelop
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D1741