changed condition to prevent passing an empty string as flavorAssetId