Sitecore: The Sitecore.Client.Device is null.

Server Error in '/' Application.

The Sitecore.Client.Device is null.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The Sitecore.Client.Device is null.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The Sitecore.Client.Device is null.]
   Sitecore.UIUtil.GetBrowserClassString() +499
   Sitecore.sitecore.login.LoginPage.AddBrowserAttributes() +135
   Sitecore.sitecore.login.LoginPage.OnPreRender(EventArgs e) +435
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297


Seems like a non proper exception handling in Sitecore.Client.dll
What helps. Updating Sitecore?