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.