Add _get_request_value to safely access request.REQUEST for browser events.

I don't remember the exact details, but I believe that REQUEST is not actually a regular dict.  And that I don't think it actually supports get().  And that's why we did it this way rather than using get() earlier.  But I don't exactly recall.