Empty strings were not being accepted in the "text" property of the "add" method

The original code did a truthy check on the params.text value, which would return false (and throw an exception) if the string passed was empty. Changed the test to exclusively test for null values instead.