added stub for safe filter
fixed: forloop empty block executing when undefined