Fixed static analyzer warnings on API missuse
Fixed wrong value on browser selection on cancled custom browser selection