Make sure code passed to eval is not undefined

It does not get evaluated as an empty string leading to bad JS output.