fix uninitialized class variable error when nokogiri is used as handler

when nokogiri is chosen as the handler `@@handler` is uninitialized