Watch out for nulls in mergeStacks (#14)