If the logo.png picture is not available, then it is hidden along with the logo from css.
<div class="logo">
<img src="logo.png" onerror="this.onerror=null;style='display:none;'"/>
</div>
Example http://jsfiddle.net/dzanis/t5Lg2ay0/
TODO The question is solved by replacing the transparent image
<div class="logo">
<img src="logo.png" onerror="this.src='data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='"/>
</div>