[HELIX-506] Ensure that tasks are not placed on targets with pending states