It actually will cause outputs other than latex that use figure extraction to fail.  Can you try #3888, which should just apply this same transform inside the latex templates?