[headless] only include alias in contact's JSON representation if it exists

2 jobs for 1256-adding-contacts-headless in 7 minutes and 26 seconds (queued for 2 seconds)