Fix ctld crash on startup if target alias is not set.

MFC after:	3 days

(cherry picked from commit e0b7e1e4572c3be1755009390ed8983b20b069e7)