Handle FALSE when database query fails.

If for some reason getRecentPopularItems fails it will return FALSE.
This should handle this situation.
Merge pull request #4 from danielbush/cache-fix

Handle FALSE when database query fails via @danielbush