terminal: Only set title if asprintf succeeded
terminal: Only set title if asprintf succeeded

Handles potential out of memory situation by skipping the title update.
This fixes the following warning:

  terminal.c: In function ‘resize_handler’:
  terminal.c:851:11: warning: ignoring return value of ‘asprintf’,
  declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Bryce Harrington <dd437fc32dcda8cbb48d47baa844ad777493d02b@samsung.com>

xorgy/weston,Gnurou/weston,eyolfson/weston,giucam/weston,Fantu/compositor-spice,Tarnyko/weston-xdg_surface_present,Tarnyko/weston-xdg_surface_present,mchalupa/weston,sir-murray/weston,Gnurou/weston,jonnylamb/weston,Fantu/compositor-spice,udoprog/weston,sir-murray/weston,krezovic/weston,eyolfson/weston,udoprog/weston,jonnylamb/weston,giucam/weston,kwm81/weston,krezovic/weston,mchalupa/weston,kwm81/weston,xorgy/weston,Fantu/compositor-spice