It could get called with nil (e.g. someone doesn't set the code attribute), and so this would just return nil which already happens today if you do this:
script "funstuff" do
returns 127
end
Probably should be a test for this though...