lua: guideline update according to #3222

A call to stop using plain asserts in favor of ensure* helpers.
Please, consider applying