fix Issue 13219 - segmentation fault in FuncDeclaration::getLevel