Fixed crash when completionHandler is nil