Fix bug: getCidFromUrl will throw error if url contains child cid.