Bug 983334 - Missing yield when calling writeToFile. r=myk