DATAJPA-568 - Fix persistence when having primitive type as @Version.

We now fall back to comparing the entities id against `null` in case of using a primitive type as `@Version` property.