Fix neko crashing

This workaround fixes neko crashing, a better solution would be to find out why value becomes null in the first place, but this workaround works.