CRM-20419 angular A/B and CiviConnect: $.isEmptyObject() on non-objects