fix Issue 13219 - segmentation fault in FuncDeclaration::getLevel
Merge pull request #3820 from 9rnsr/fix13219

[REG2.065] Issue 13219 - segmentation fault in FuncDeclaration::getLevel