Fixes #3469, explicit isset check for counterCache
Merge pull request #3470 from cuppett/master

Fixes #3469, explicit isset check for counterCache