Fix notice in CakeSession.
Merge pull request #4158 from dereuromark/master-cakesession-hotfix

Fix notice in CakeSession.