Prevent a crash when scheme is null for some reason.