Fixed ""-must-be-null problem for results returned from the database. I
added a utility in json-procs.tcl to help with this, but since I also needed
to convert PG intervals to the "PT01H02M03.5S" format used by the SCORM RTE
in actuality it's fixed in the scorm player package. But the JSON proc may
be useful for someone else so I left it in ...