Fixes exception in html filter entities