Throw illegal argument exception on receiving null text String.
Otherwise this crashes the JVM! At least when running in JRuby.
Merge pull request #26 from amalagaura/master

Throw illegal argument exception on receiving null text String.