Latest Chrome build causes video not to show in the cockpit

Looks like chrome changed its behavior and we now need to check for nulls as well as undefined in the gamepad.js library. When no gamepad is connected the code that used to work has started throwing an exception causing the rest of the javascript on the page to stop working which prevented the video from starting.