It is a homomorphism because you are incorrect that $\det(AB)\neq\det(A)\det(B)$ unless $\det(A)$ and $\det(B)$ are 1; in fact the statement that $\det(AB)=\det(A)\det(B)$ is always true for matrices over any commutative ring.
This is something I've always just thought, but I had a surprising amount of difficulty coming up with a reference for it, and I couldn't think of a way of proving the general statement myself, which is off-putting. At any rate, here is one proof, which shows that $\det(AB)=\det(A)\det(B)$ holds for matrices over $\mathbb{C}$, then argues that this implies it is true for matrices over any ring $R$ because the determinant is an integer polynomial in the entries of a matrix and we can embed the polynomial ring in $n^2$ variables over $\mathbb{Z}$ into $\mathbb{C}$.
Also, note that one says that a map "is a homomorphism", not "is homomorphic".