To be able to access it as a parameter, 'wordList' should be specified as the 'name' - not as the value:
<textarea id='wordList' name='wordList'></textarea>
Also, make sure you validate the field to check if it is null, before you use it in the rest of the code.