Fixing undefined offset 0 when there are no articles

When there are no articles (new user after fresh clone) getArticles return an empty array so the property article in the first position isn't set so the html shouldn't be rendered at all. The undefined offset 0 warning and subsequent errors could be seen in the error log though its effect didn't show visually in the page.