> If the polynomial P is invertible, i.e. has degree 1
Should be degree 0: only constant polynomials are invertible. E.g. x+1 is not invertible, and modding it out doesn't result in the zero ring.
The example is a bit confusing, because $x=x+1$ is equivalent to $0=1$, which has degree 0.