Avoid errors when a non-existent element is called by a function
Avoid errors when a non-existent element is called by a function

Submitted-by: Manoel Carvalho

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