[#2242] fix rule engine segfault