Crash when using nearby.castRay with { ignore = nearby.actors }

Happens in 0.49 and 0.50

local input = require('openmw.input')
local nearby = require('openmw.nearby')
local self = require('openmw.self')
local util = require('openmw.util')

return {
        engineHandlers = {
                onKeyPress = function(e)
                        if e.code == input.KEY.Z then
                                nearby.castRay(self.position, self.position + util.vector3(10, 10, 10), {
                                        ignore = nearby.actors,
                                })
                        end
                end
        },
}

Press Z:

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0x6476006e726d