Don't crash if no NameIdPolicy is requested
This fixes two problems:
1. Logging was done before a None check was completed
2. The None check was insufficient because the whole object
could be None
https://fedorahosted.org/ipsilon/ticket/189
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>