added a try block around http method parsing in parse_vhosts() to avoid the occasional "list index out of range" errors