Adding angles corresponds to multiplying complex numbers.
$\arctan(\theta)$ is the angle (argument) of the complex number $1+\theta i.$
Then
$(1+2xi)(1+3xi) = (1-6x^2)+ 5xi$
is the complex number with angle
$\arctan(2x)+\arctan(3x)$.
Therefore we want to find $x$ such that $(1-6x^2)+5xi$ is a complex number with angle $\pi / 4$. In other words we want it to be a real multiple of $1+i$, or equivalently a complex number with equal real and imaginary part. However, not all such numbers have angle $\pi/4$ so we can obtain false solutions.
This leads to the same equation that you have, although now it may be easier to see that for $x < 0$, you are adding angles in the clockwise direction, i.e. your angles are negative. Therefore $x = -1$ gives a false solution, and corresponds to the complex number $-5-5i$ that has angle
$\arctan(-2)+\arctan(-3) = -3\pi/4$.