Here is how the calculation works:
R = (Vs - N * Vf)) / I
Where Vs is the supply voltage and Vf is the forward voltage, N is the number of LEDs in series and I is the current.
With Vs = 12, N = 4, and Vf = 3, you get 0 for the resistor.
If, indeed, the Vf was exactly 3, it should work...