Return early in check_source_type to avoid invalid URI error when converting a file with spaces in the name

I had problems when converting a file with spaces in the name since it isn't a valid URI. This fixes the issue by returning from the function once we know the source is valid