prevent crash in Hierarchify() with empty cells