Do not try to emit nested functions with unanalyzed parents.

GitHub: Fixes #497.
Merge pull request #510 from klickverbot/issue-497

Do not try to emit nested functions with unanalyzed parents.