Fix notice in CakeSession.

Follow up on https://github.com/cakephp/cakephp/pull/3804