Apply http://prosody.im/patches/luaevent-catch-errors-1.patch
Fix stack overflow issue