don't try to open joystick if controller is NULL