Fix workaround for requirejs isBrowser test

[#50029005]