Avoid same JS error on empty "alt" attribute