added new validation to avoid the deletion of internal Streams