Removed joystick file descriptor from select() when a joystick is not
detected.