Fix a bug causing browser detection to throw an error on Linux

[#57379926]