layers: add null check
This fixes https://crash-reports.kde.org/organizations/kde/issues/96985
(cherry picked from commit 0a4e7d89)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com
This fixes https://crash-reports.kde.org/organizations/kde/issues/96985
(cherry picked from commit 0a4e7d89)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com