aheatmap: fix issue with layouts that end with a '|'