Pitfalls of topology-aware image segmentation