[FORGE-881] Change the thrown exception to the correct type as indicated by the interface

The API indicated an ```IllegalArgumentException``` should be thrown, but the implementation was throwing ```IllegalStateException```. This just replaces the thrown type with the correct type.