Fix crash when using automata and have no debug info

Ensure debug info is present before searching for automata.