fix: check preferred identity host in authentication

Merged Nicolas Delpech requested to merge fix/crash_on_invalid_preferred_identity_master into master

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

(cherry picked from commit bbd7291a)

FLEXISIP-537

Merge request reports