Throw illegal argument exception on receiving null text String.

Otherwise this crashes the JVM! At least when running in JRuby.

Can be handled in a different way if you choose, but was highly annoying running into this.