Fixing bug in api.updates.check().