Fix returnType error in checking validity of clone url.

@ussuri TBR