Fix chart being created on results page when no results are present at load