Set default and null values on task creation