reflection: return null if entity primary property not defined