Changed the logic of the GetByPublishedVersion to only return from cache if the cache item is published.