Patch fixing behavior of TeXForm for expressions with defined custom formatting.