Throw exception on null text.