Updated getCollectionAsync

Fixed NetworkOnMainThread exception.