Changed text parameter checking to be a non-truthy test for null. Blank strings were not being accepted as text parameters.