ttools: fix NullPointerException in WordsParameter

If a WordsParameter had a permitted null value, a NullPointerException
was being thrown (common e.g. when using tcube task).
This was a regression bug introduced at v3.0 (d5103f19).
Fix by just checking for null.