Report IllegalArgument instead of IllegalState

This is wrong input, not internal state.

Change-Id: I8a0d459a308f309229cf55955be3a77604d47a1d
Signed-off-by: Robert Varga <rovarga@cisco.com>