Fixed issue when creating bounding box with null