call completedBlock when url is nil.