Curly brackets don't always have a scope_closer

Fixes a notice that happens when sniffing code that uses curly brackets for string indexing.