WebSession: improve data error handling

* When 'login_method' is missing from user preferences, the
  exception is now gracefully raised and execution continues
  using default values.

Co-authored-by: Samuele Kaplun <samuele.kaplun@cern.ch>