Raise an exception when Hash::get() receives invalid parameters
Raise an exception when Hash::get() receives invalid parameters

I'm not sure on whether this is a problem with my local app but I have
seen it a couple of times in a couple of projects: Warning (2): Invalid
argument supplied for foreach() [CORE/Cake/Utility/Hash.php, line 52]

I think Hash::get should be able to handle this better rather than
throwing an error in a core Util file.

Refs #3754

tisu2tisu/cakephp,akintoey/cakephp,akintoey/cakephp,pbaire/cakephp,jjj117/cakephp,mvdriel/cakephp,burriko/cakephp,davidyell/cakephp,ndm2/cakephp,gmponos/cakephp,et304383/passbolt_api,kumamidori/cakephp,tisu2tisu/cakephp,thinkingmedia/cakephp,ndm2/cakephp,erikfig/cakephp,adopico/cakephp,nrother/cakephp,petteyg/cakephp,dakota/cakephp,adopico/cakephp,petteyg/cakephp,tenkoma/cakephp,timhoeppner/cakephp,CVO-Technologies/cakephp,mvdriel/cakephp,akintoey/cakephp,web-player/cakephp,jerems02/cakephp,Balachan27/cakephp,CakeDC/cakephp,timhoeppner/cakephp,kumamidori/cakephp,eboominathan/cakephp,erikfig/cakephp,justinyost/cakephp,dkarvounaris/cakephp,michaelze/cakephp,HavokInspiration/cakephp,tisu2tisu/cakephp,CVO-Technologies/cakephp,Phillaf/cakephp,jerems02/cakephp,tgr0ss/cakephp,tenkoma/cakephp,jeffblack360/cakephp,ionas/cakephp,elboletaire/cakephp,jeffblack360/cakephp,CVO-Technologies/cakephp,cakephp/cakephp,dakota/cakephp,web-player/cakephp,cakephp-fr/cakephp,dkarvounaris/cakephp,jerems02/cakephp,garethellis36/cakephp,elboletaire/cakephp,ionas/cakephp,ndm2/cakephp,ADmad/cakephp,Phillaf/cakephp,jeffblack360/cakephp,justinyost/cakephp,berrygoudswaard/cakephp,mvdriel/cakephp,CakeDC/cakephp,Phillaf/cakephp,cakephp/cakephp,bravo-kernel/cakephp,berrygoudswaard/cakephp,burriko/cakephp,gmponos/cakephp,gmponos/cakephp,mvdriel/cakephp,davidyell/cakephp,berrygoudswaard/cakephp,yinhe007/cakephp,garethellis36/cakephp,khoimt/cakephp-study,petteyg/cakephp,ADmad/cakephp,elboletaire/cakephp,CakeDC/cakephp,et304383/passbolt_api,Balachan27/cakephp,dakota/cakephp,bravo-kernel/cakephp,eboominathan/cakephp,tenkoma/cakephp,web-player/cakephp,et304383/passbolt_api,ADmad/cakephp,petteyg/cakephp,tgr0ss/cakephp,erikfig/cakephp,tenkoma/cakephp,pbaire/cakephp,michaelze/cakephp,eryw/cakephp,ADmad/cakephp,yinhe007/cakephp,Balachan27/cakephp,eryw/cakephp,cakephp/cakephp,cakephp-fr/cakephp,nrother/cakephp,HavokInspiration/cakephp,nrother/cakephp,tgr0ss/cakephp,dkarvounaris/cakephp,justinyost/cakephp,pbaire/cakephp,burriko/cakephp,michaelze/cakephp,thinkingmedia/cakephp,cakephp/cakephp,bravo-kernel/cakephp,timhoeppner/cakephp,ionas/cakephp,kumamidori/cakephp,davidyell/cakephp,dakota/cakephp,thinkingmedia/cakephp,ndm2/cakephp,HavokInspiration/cakephp,jjj117/cakephp,garethellis36/cakephp,garethellis36/cakephp,jjj117/cakephp,adopico/cakephp,khoimt/cakephp-study,et304383/passbolt_api,cakephp-fr/cakephp,CakeDC/cakephp,eryw/cakephp,khoimt/cakephp-study,yinhe007/cakephp,et304383/passbolt_api,eboominathan/cakephp