add check before assigning endURL; filter out http when endURL is nil
add check before assigning endURL; filter out http when endURL is nil

msftberlin/azure-activedirectory-library-for-objc,msintuneappsdk/azure-activedirectory-library-for-objc,AzureAD/azure-activedirectory-library-for-objc,AzureAD/azure-activedirectory-library-for-objc,AzureAD/azure-activedirectory-library-for-objc,msintuneappsdk/azure-activedirectory-library-for-objc,AzureAD/azure-activedirectory-library-for-objc,AzureAD/azure-activedirectory-library-for-objc,msftberlin/azure-activedirectory-library-for-objc