change signature of createTask method

https://trello.com/c/bCqrLKCJ/200-nullpointerexception-in-ironworkerjava