improve code robustness in template designer (unexisting component case)