identity: small improvements (#458)
I'm not sure why the error wasn't getting returned; might have been a
typo? Probably worth re-reading that function again in review. I hit a
nil de-reference pointer in automod caused by that function returning
`nil, nil`.