Avoid notice thrown in debug().
Merge pull request #4630 from cakephp/3.0-debug

Avoid notice thrown in debug().