Fix JS error that occurs when Instagram images have no captions