Handles IllegalArgumentException when provider does not exist.