Fix issue in htmlfile sockjs transport

Issue: SPR-10854