Changed BuildingTree.size implementation, added null check.