add empty task when task list is empty and ignore mass assignment error in rails