Fix for issue 301

https://github.com/Dash-Industry-Forum/dash.js/issues/301