[api] fix ActiveRecord::ReadOnlyRecord exception when updating a variant without the product permalink