On line 224 above $bundle is contitionally set to NULL, setCacheID requires $bundle to be an array or valid bundle name, setCacheID should be changed to treat NULL as "any_bundle".