Do not try to emit nested functions with unanalyzed parents.

GitHub: Fixes #497.