fix bug in instagram data parser and add proper handling of 404s