Fix user-agent issue with IE9+ (UA differs from what is sent under certain
document modes).