Added integrity check of $fragment_cache object

Callbacks added to 'fragment_cache_init' hook can do everything with
$fragment_cache object. Avoid fatal errors by checking $fragment_cache
is a valin instance of Plugin class before call run method on it