fixing bug involving no photos

fixed bug where import script would fatally error out when there were no
pictures on the feed