Update csv.php

Building the CSV was dropping some values because json_decode sucks at null. This resulted in data in the wrong cells. All better now.
Merge pull request #1 from dpawluk/patch-1

Update csv.php