https://www.drupal.org/node/1343430#comment-11853998
Do not print view block code when it is empty.
- Add a FILTER CRITERIA
- Select the same field that you are displaying under fields
- Select the Operator as "Is not empty (NOT NULL)"
- Save it and its done.