Fixed a regression causing a crash as some functions with no symbols are allowed to reach code generation