fix: Don't display “Invite” button on user-add form.
We can't construct the link for the “Invite” button before we have the user instance's ID in the database. This is fine for the user-editing form but not for the user-add form where the user instance hasn't been created in the database yet.
This change displays the “Invite” button only if we have a user with a primary key.