apiconnector: bugfix standard deviation function. (case population of length 1)