[PATCH] BZ 784499 added check to ensure task exists before saving