chore(gulp): Skip Dart tasks when the SDK is not detected

fixes #268
it would work equally well as `indexOf` always returns a number