Update AuthenticationHandler.cs

If the principal has no claim for NameIdentifier the code fails because principal.FindFirst(ClaimTypes.NameIdentifier) equates to null and null has no value property. This same logic error happens in the next branch with "sub".