Check size before extracting elements using jsoup to avoid potential crash.