Handle NoSuchElementException in ProviderAPI.
Merge branch 'bug/NoSuchElementException-isn't-handled-in-ProviderAPI-#5983' into develop