prevent create_component_json from writing empty lists for scripts, styles, local, images, fonts