fix segfault when rss feed is malformed + some minor changes