Fixed issue in latest canary build of chrome returns nulls in the gamepad array so we need to check for nulls as well as undefined in the gamepad.js library