Handles api error for last match and top scorers widgets