[fix] optimizes errorhandling function to exclude any undefinded items
[fix] optimizes errorhandling function to exclude any undefinded items

ColdForge/icebox,ColdForge/icebox,ColdForge/icebox,ColdForge/icebox