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

2 jobs for <span class="ref-name">1256-adding-contacts-headless</span> 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