Fix KeyError for license and summary

Prevent a KeyError when license or summary keys are not available.