Fix potential bug when list is empty.
Merge branch 'master' of github.com:romainreuillon/openmole