Js bugfix

pass through the empty list instead of null for constraints.   Should fix the issues with editing works created by jobs