[api2] Remove inappropriate asserts