Allow tasks not returning anything
Right now, call to task.run (inside call) failed with typecheck enable if the task does not return anything. Allow tasks to not return anything (None) by adding a wrapper that checks if run returned None and return {} instead