check block is nil or not inside of dispatch_group_async

To prevent nil object, I checked inside of dispatch_group_async this is block nil or not.
This is solution if #2374 issue.