From debugging, it looks like \begin{align} ... \end{align} is creating a macro in a format not recognized by Joplin's stringifyKatexOptions:
{
'\@eqnsw': '1',
'\myothermacro': { tokens: Array (7), numArgs: 0, ... }
}
stringifyKatexOptions expects all macros to have a .tokens property.