Fix bug introduced by refactoring person creation code (to allow third party plugin person creation).