Fix an ``IndexError`` crash raising from ``getstatementrange_ast``.