Avoiding notices in bake templates
Same fix for the view template
Merge pull request #4243 from cakephp/3.0-bake-template-fix

3.0 bake template fix