Update createchart.js.php

Fixed bug that caused the humidity to not load every result, got rid of PHP warnings about the array keys.