Ensure the rp name is specified even if no siteName is specified for check_registration and verify_primary_user.

fixes #3976
Merge branch 'issue-3976-undefined-sitename' into dev