Fix logic for parsing princ components (LP 1249863)

Avoid segfault when missing acceptor realm.