Fix for issue where we return 500 instead of 409 for defineTask when taskId is already in use...