A try-except block to catch the LookupError exception and to trigger the package download should do the trick .
The default directory that NLTK uses to store download packages should be available for writing in the Community Cloud; I did not need to modify that path. Here is an example app and the corresponding repo.
