src/helper.cpp - fix crash in setResourceColor

don't crash on empty collection ColorAttribute

BUG: 426906
FIXED-IN: 21.08.2
1 job for release/21.08 in 3 minutes and 18 seconds (queued for 58 minutes and 54 seconds)
Name Stage Failure
failed
build_clazy_clang_tidy Build
No job log