Fixed memory access in wbi
Merge branch 'rovereto' of https://github.com/robotology/codyco into rovereto