LPS-41032 (LPS-39735 part 5)

Hi Brian,

similar to #14523. Throw PrincipalException when preferences don't exist.

Thanks.