fix get cached entity when no cached version exists
Merge pull request #3 from iantocristian/fix-get-cached-entity

fix get cached entity when no cached version exists