added checks to prevent creation of task with empty name (clicking "Start" with empty TaskSelector autocomplete)