fixed error when loading the css of some websites when using the bypass-hsts option, added some better error handling on plugins