SES-1676 : Switch to IllegalStateException in createLiteral(Object)

Exception should never be thrown by the current design.