1) Basic hardening against URL request errors (QnD).
2) Unnecessary refactoring of historical data getter.