FLUID-4871: Updated check for browser environment. In addition to checking for window object also checking for window.document since we create a stub window context in Node.js as well.
Merge branch 'master' into FLUID-4871
Merge branch 'FLUID-4871'

* FLUID-4871:
  FLUID-4911: Removing require stub.
  FLUID-4871: Updated check for browser environment. In addition to checking for window object also checking for window.document since we create a stub window context in Node.js as well.