[webui] fix crash when submit target project does not exist