eliminate a PHP Notice

The notice is especially annoying when using WP-CLI
Merge pull request #38 from zbtirrell/master

Eliminate a PHP notice by making sure `$batcache` is defined before using it in `is_object()`.