DATAJPA-269 - Add support for deriving the identifier of nested composite key entities.

Added missing null check that was caught by test:
org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationUnitTests.doesNotCreateIdIfAllPartialAttributesAreNull().