Handles empty function and missing constructor cases.

Resolves #1.