It is not necessary to check for empty strings in the raw URLs as the associated DIal functions will fail appropriately. However, in the case of FastCGI you want to default to HTTP so checking for an empty URL is needed.
You would be able to remove the checks adding in commit 9a63716c8569bcdbb071d375ba4d188f6bc976f6 with this patch.
It is not necessary to check for empty strings in the raw URLs as the associated DIal functions will fail appropriately. However, in the case of FastCGI you want to default to HTTP so checking for an empty URL is needed.
You would be able to remove the checks adding in commit 9a63716c8569bcdbb071d375ba4d188f6bc976f6 with this patch.