Fix crash when changing a kit in project settings

Change-Id: Ib584cb5d6d1d3802f3a21b741b560ace78722b9a
Reviewed-by: hjk <hjk121@nokiamail.com>