throws exception for invalid id in deleteTask