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

2 jobs from 1256-adding-contacts-headless in 7 minutes and 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #3392
test

00:07:26

failed #3391
test

00:05:39