Fixed a bug with the json_escape helper where undefined objects don't return empty strings

This sometimes causes an issue when creating objectives from the multitype selector modal. For new objects, the description is set to "undefined" instead of "".