Fixes NPE in CreateNew when collapsedIds settings hasn't been set yet.