Fixed bug in add task dialog preventing tasks from being created