don't try to open a joystick if controller is NULL
Merge pull request #3776 from birarda/hydra-crash

don't try to open joystick if controller is NULL