Fix bug causing renderGeneratedAsset to not exit upon error