Mi Mix2 patching issue

<%= @topic_view.topic.title %>
<%= @topic_view.topic.average_rating %> <%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %>

I have installed twrp 3.3.1.1 while installing mokee rom every time needs to modify updater-script and remove assert line till the ui_print. Otherwise twrp generates error 7 will patching mokee rom. Could you please fix this issue or remove assert line from updater script in future