ruby: fix access to nil @exported_templates in #find_exported_templates