core: "fix" null dereference detected by clang-analyzer
core: "fix" null dereference detected by clang-analyzer

Actually would not happen due to empty vector, but analyzer doesn't know that

ammen99/wayfire,ammen99/wayfire