Throw illegal argument exception on receiving null text String.
Otherwise this crashes the JVM! At least when running in JRuby.