[sr-dev] git:5.6:b524321a: app_lua: fix crash on exausted memory scenario