Re-structure the code that checks if the feed was updated. On the way, fix an issue with empty lastcheck values.