Handle appending to array that is undefined.