Download size estimate now correctly handles NaN response

Fix for issue #824