Fixed bug prevents sensors to stop [WP-736]

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