Here is the formula for the stress energy tensor: $$ T_{\mu\nu} = - {2\over\sqrt{ |\det g| }}{\delta S_{EM}\over \delta g^{\mu\nu}} $$ (This follows from varying the total action $S = S_H + S_{EM}$, where $S_H={c^4\over 16\pi G} \int R \sqrt{ |\det g_{\mu\nu}| } d^4 x$ is the Hilbert action and it gives the Einstein's equations, and $S_{EM}$ are other terms in the Lagrangian, that contribute to the right hand side of the Einstein's equations in form of the $T_{\mu\nu}$ above.) The Lagrangian of the electromagnetic field is:
$$ S_{EM1} = -\int {1\over 4\mu_0} F_{\alpha\beta} F^{\alpha\beta} \sqrt{ |\det g| } d^4 x $$
and using the formula above, we get for the stress energy tensor:
$$ T_{\mu\nu} = {1\over \mu_0} \left( F_{\mu\beta} F_\nu{}^\beta -{1\over 4} F_{\alpha\beta} F^{\alpha\beta} g_{\mu\nu} \right) $$ which is the correct elmag. stress energy tensor. However, the interaction part of the elmag. Lagrangian is $$ S_{EM2} = -\int j_\mu A^\mu \sqrt{ |\det g| } d^4 x $$ and if we interpret this as a function of $g^{\mu\nu}$ it would also contribute to the stress energy tensor like this: $$ \delta S_{EM2} = -\delta\int j_\mu A^\mu \sqrt{ |\det g| } d^4 x =-\int \delta (g^{\mu\nu} j_\mu A_\nu \sqrt{ |\det g| }) d^4 x = $$ $$ =-\int (\delta g^{\mu\nu}) (j_\mu \sqrt{ |\det g| })) A_\nu d^4 x $$
where the $j_\mu \sqrt{ |\det g| }$ is treated as the current density (and thus not depending on $g^{\mu\nu}$ when varying), however, clearly the stress energy tensor corresponding to this would be: $$ T_{\mu\nu} = 2 j_\mu A_\nu $$ (Possibly only the symmetric part contributes, because the antisymmetric part cancels with $g^{\mu\nu}$, so we would get $T_{\mu\nu} = j_\mu A_\nu + j_\nu A_\mu$.) In either case, such terms should then appear on the right hand side of the Einstein's equations. However, I don't think that this is correct.
Does anybody know what is wrong here?