ecmascript/apiv1: Fix problem when no HTTP args are given