fix: check preferred identity host in authentication

Merged Nicolas Delpech requested to merge fix/crash_on_invalid_preferred_identity into release/2.4

Ensure preferred identity was properly parsed before using it. Also fix a leak that would happen when throwing an exception while configuring the AuthStatus.

FLEXISIP-537

Merge request reports