[minor] Cleanup an err case in identity code

Minor fix for a case where we might not have returned the err.