Empty view is rendered even though there is no result I have created a view in order to create a block for slide show in drupal 7.
In my view I used a conditional field. This field gets the id of node from URL so I set "When the filter value is NOT available" to "Provide default value" and in TYPE drop down menu I set "Content ID From URL"



This view works with no problem. However, when the view is empty (there is no rows for fetched parameter value from URL) I see some rendered codes.

&lt;div id="block-views-coupon-slides-block" class="block block-views clearfix"&gt;
  &lt;div class="content"&gt;
    &lt;div class="view view-coupon-slides view-id-coupon_slides view-display-id-block view-dom-id-90e27feb6919634c2f506f189c503c01"&gt;
      &lt;div class="view-content"&gt;
        &lt;div class="skin-default"&gt;
          &lt;div class="views-slideshow-controls-top clearfix"&gt;
            &lt;div id="widget_pager_top_coupon_slides-block" class="views-slideshow-pager-fields widget_pager widget_pager_top views_slideshow_pager_field views-slideshow-pager-field-processed"&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="views_slideshow_cycle_main_coupon_slides-block" class="views_slideshow_cycle_main views_slideshow_main viewsSlideshowCycle-processed"&gt;
            &lt;div id="views_slideshow_cycle_teaser_section_coupon_slides-block" class="views-slideshow-cycle-main-frame views_slideshow_cycle_teaser_section"&gt;
              &lt;div id="views_slideshow_cycle_div_coupon_slides-block_0" class="views-slideshow-cycle-main-frame-row views_slideshow_cycle_slide views_slideshow_slide views-row-1 views-row-odd"&gt;
                &lt;div class="views-slideshow-cycle-main-frame-row-item views-row views-row-0 views-row-first views-row-odd"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


What is your solution for this problem? As far as I know when a view returns no row, it must not be rendered in source code. In above codes, you see there is no result but the codes of block are printed !!!

Thanks a lot for your guidance.
You should add a filter criteria for any one of the fields. For example if you have a field called company then you could add a filter criteria for this field and then choose "Is Not Empty (NOT NULL)" from the Drop down. This would make sure that the view is rendered only if the required field is present. 

In normal case  when you are passing a Contextual filter the view is rendered even though the result is null. but if we provide a filter as I mentioned above it does not display at all.