Fix segfault when html composer labels contain img tags