Making pie layout work properly when a function is specified for startAngle

The concerned line in pie.js assumes that a number is specified for startAngle and breaks if it is a function.