Handle CMake methods/functions without arguments gracefully
Fixes crash from KDE bug #363707. For details see backtrace in bug report.
BUG: 363707