GamePad.GetState() null exception

I’m using monogame (.1082), but this bug happened to me with previous versions, too.

It happens “rarely” when the game has started and the controller is disconnected. When you turn the controller on an “Object not set to an instance of an object” is thrown. It happens in the the Update() method when calling GamePad.GetState()

" at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n at Microsoft.Xna.Framework.Input.GamePad.PlatformGetState(Int32 index, GamePadDeadZone leftDeadZoneMode, GamePadDeadZone rightDeadZoneMode)\r\n at Microsoft.Xna.Framework.Input.GamePad.GetState(Int32 index, GamePadDeadZone leftDeadZoneMode, GamePadDeadZone rightDeadZoneMode)\r\n at Microsoft.Xna.Framework.Input.GamePad.GetState(Int32 index)\r\n at