Add clone for error expression. Fixes #13443