I actually got two calls to a member function on a non-object. This
one and another one in MailboxCache.php. So I thought about the cache
and cleared it lots of times. It helped to solve only error with
MailboxCache.php and not with Content.php.