Settings : Update gesture preference check

Move the gesture outside the stylus dependency check and remove the
preference category if no children are found