Add support for undefined variable in ng-csv directive

Currently `ng-csv="undefinedVariable"` will throw an exception because
of a bad function call to an undefined variable. This patch simply adds
a sanity check and returns an empty csv.