NOJIRA Fix for GitHub issue 131

PHPs json_encode encodes empty arrays as lists (‘[]’) instead of
objects (‘{}’). We now force it to treat empty array return values from
either BaseModel or SearchResult::get() as objects by inserting an
empty stdClass object in the result array that is later passed to
json_encode.