ProjectExplorer: Fix crash on deleting kit from new dialog

Task-number: QTCREATORBUG-13499
Change-Id: Ibcd591620469abf56270cc512de1583900ce78e3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>