Fixed issue where empty pages would still be downloaded