Fix CI error when declarative module is not available

Change-Id: I8977587e867248247465035c19630ebcd4788df7
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>