Forecast - Check that alerts is not undefined before appending it to the header

Seems like sometimes alerts is empty string and sometimes it's undefined. When it's undefined and concatenated with the other header text it was adding the string 'undefined' to the header.

cc @sdougbrown @russellholt