improved error handling of parsing pubdate