catch transformation exceptions in pal labeling (fixes #7730)