g_string memleak fix in recipe_handler and task_handler

g_strings should be freed regardles of whether they contain actual data or not.
Merge pull request #6 from sm00th/g_string_memleak

g_string memleak fix in recipe_handler and task_handler