Exception in rendering!

Message: document is not defined

ReferenceError: document is not defined
    at getCookie (<anonymous>:53949:22)
    at getSelectedLanguage (<anonymous>:53956:84)
    at mapStateToProps (<anonymous>:111981:58)
    at Connect.configureFinalMapState (<anonymous>:83492:27)
    at Connect.computeStateProps (<anonymous>:83479:23)
    at Connect.updateStatePropsIfNeeded (<anonymous>:83541:35)
    at Connect.render (<anonymous>:83677:40)
    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (<anonymous>:78549:30)
    at ReactCompositeComponentWrapper._renderValidatedComponent (<anonymous>:78572:32)
    at ReactCompositeComponentWrapper.performInitialMount (<anonymous>:78112:30)