Fix for coverity (don't segv if the ruby function returns an array during intiialisation)