Check for null values before destroying displays.
Merge pull request #1562 from fontforge/issue_1559

Check for null values before destroying displays.