Improved polling logic to request gum only when in denied state, polling gumstate otherwise