Updated filterTasks

Added a condition such that if the currentfilter is empty || "" then we
will filter the entire task.