Don't try to analyze when parse fails

This would result in a stack trace (UnboundLocalError).