Fixed a bug described in WP-904 affecting SensorService

http://jira.webinos.org/browse/WP-904