Merge "Frameworks/base: Check before foreach in Script"