browser: getOutputLength: return 0 when xhr.response is null

fixes tests on safari 5.1