Protect package_reinstall_all()
Protect package_reinstall_all()

If one restores a config.xml without packages, there will be a warning about invalid argument supplied for foreach(). This commit fixes the problem.

NewEraCracker/pfsense,brunostein/pfsense,ch1c4um/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,ch1c4um/pfsense,pfsense/pfsense,NewEraCracker/pfsense,jxmx/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,NOYB/pfsense,phil-davis/pfsense,ptorsten/pfsense,pfsense/pfsense,brunostein/pfsense,dennypage/pfsense,pfsense/pfsense,ptorsten/pfsense,jxmx/pfsense,dennypage/pfsense,ch1c4um/pfsense,NOYB/pfsense,phil-davis/pfsense,NOYB/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,phil-davis/pfsense,pfsense/pfsense,NewEraCracker/pfsense,dennypage/pfsense,dennypage/pfsense,brunostein/pfsense