Added some simple checks to make sure that we do not get an undef instead of a HASH ref, causing the youtube-viewer to die with an error: Can't use an undefined value as an ARRAY reference This happened from time-to-time when prefer_https was set to 1.
Added some simple checks to make sure that we do not get an undef instead of a HASH ref, causing the youtube-viewer to die with an error: Can't use an undefined value as an ARRAY reference
This happened from time-to-time when prefer_https was set to 1.

trizen/youtube-viewer,trizen/youtube-viewer