change unless !blank? to if blank? in get_primary_key
Merge pull request #8800 from acapilleri/primary_key

refactor reset_primary_key and change !blank? to present? in get_primary...