Added checks to avoid downloading error pages

Removed blank lines with tabs