Fixed some unimported classes

This error was detected by SensioLabs Insight (rule # 22-080)
Small refactoring to reduce the line length of HtmlChunkedPublisher class

I know that this is a minor tweak, but I must reduce the length of
some classes in order to win back the SensioLabs Insight Platinum medal